/*
 * @Description: 
 * @Version: 2.0
 * @Autor: 刘世琪
 * @Date: 2021-01-29 16:47:07
 * @LastEditors: Seven
 * @LastEditTime: 2021-02-01 22:55:54
 */
import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  mode:"history",
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/register',  // 注册
      name: 'Register',
      component: () => import('@/components/Register')
    },
    {
      path: '/login',  // 登录
      name: 'Login',
      component: () => import('@/components/Login')
    },
    {
      path: '/index',  // 首页 展示教练
      name: 'Index',
      component: () => import('@/components/Index')
    },
    {
      path: '/show_coach',  // 展示教练介绍
      name: 'ShowCoach',
      component: () => import('@/components/ShowCoach')
    },
    {
      path: '/order',  // 订单详情
      name: 'Order',
      component: () => import('@/components/Order')
    },
  ]
})
